package com.xiaot.shopping.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaot.common.utils.PageUtils;
import com.xiaot.shopping.product.entity.AttrGroupEntity;
import com.xiaot.shopping.product.vo.AttrGroupRelationVo;

import java.util.Map;

/**
 * 属性分组
 *
 * @author xiaoT
 * @email 
 * @date 2021-07-02 22:36:20
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catId);

    /**
     * 回显所属分类
     * @param catelogId 三级所属分类id
     * @return [一级分类id, 二级分类id, 三级分类id]
     */
    Long[] findCatelogPath(Long catelogId);

    void deleteRelation(AttrGroupRelationVo[] attrGroupRelation);
}

